This XCMD will take whatever picture is on the clipboard and save it as a PICT resource. This can be used with the DrawPict* XCMD
People are encouraged to use these freely, but they will not be supported.
If anyone is interested in the source code, or have questions, they can
contact me at:
High Performance Systems
13 Dartmouth College Hwy
Lyme, NH 03768
Attn: Michael McClennen
(603)-795-4857
Michael is another of those loyal Developer Stack devotees who received the latest issue free because he donated this XCMD to the stack. Thanks, Mike. [Editor]
-- part contents for background part 10
----- text -----
Syntax:
ClipToPICTRes
Results:
If the clipboard contains 'PICT' data, this XCMD will ask the user to name it, copy it into the heap, mark it as a resource, and write it to the current resource file
(which will be the current stack). Note that if the name contains spaces, DrawPict cannot access it.
Unfortunately, it cannot tell if you hit cancel on the HyperCard dialog box asking for the name, or if you hit OK with nothing in the field. In either case, it will cancel.
You can compose a picture using the HyperCard paint tools and copy it to the clipboard, or you can use any other graphics program, either bitmap or object.